package com.springboot.astra.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.astra.bean.Comment;

public interface CommentMapper {
    Comment getOneCommentById(Integer id) throws Exception;
    IPage<Comment> getAllComment(Page<Comment> page,String query) throws Exception;
    IPage<Comment> getAllCommentByUserId(Page<Comment> page,String query) throws Exception;
    void insertCommentForOneGoods(Comment comment) throws  Exception;
    void updateCommentForOneGoods(Comment comment) throws  Exception;
    void deleteCommentForOneGoods(Comment comment) throws  Exception;
}
